package com.cyh.testdesignpattern.observer;

import android.util.Log;


//其中一个网站如百度、新浪;
public class CureentConditions implements Observer{
    private float temperature;
    private float pressure;
    private float humidify;

    @Override
    public void update(float temperature, float pressure, float humidify) {
        this.temperature = temperature;
        this.pressure = pressure;
        this.humidify = humidify;
        display();
    }
    public void display() {
        Log.i("CureentConditions", "=== temperature = " + temperature);
        Log.i("CureentConditions", "=== pressure = " + pressure);
        Log.i("CureentConditions", "=== humidify = " + humidify);
    }
}
